package com.mike.employment.po;

import com.mike.employment.base.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class Notice extends BaseEntity{

	@Column(nullable = false)
	private String title;  //公告标题
	@Column(nullable = false)
	private String desp;  //主要内容简介
	@Column(columnDefinition = "longtext", nullable = false)
	private String content; // 公告内容
	@Column(nullable = false)
	private Integer status = 0; //状态  0：草稿  1：发布
	@ManyToOne(targetEntity=Account.class)
	@JoinColumn(name="account_id",referencedColumnName="id")
	private Account creater;  // 创建人
	
}
